package com.tarena.lbs.basic.web.service;


import com.tarena.lbs.pojo.basic.param.EsUpdateParam;
import com.tarena.lbs.pojo.basic.query.EsQuery;
import java.io.IOException;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.builder.SearchSourceBuilder;

public interface IEsService<T> {

    Boolean insertData(EsUpdateParam dto, T data);

    SearchResponse search(String indexName, SearchSourceBuilder searchSourceBuilder) throws Exception;

    SearchResponse searchGeo(EsQuery dto, double latitude, double longitude) throws IOException;
}
